Skip to content

gh-95778: CVE-2020-10735: Prevent DoS by very large int()#96499

Merged
gpshead merged 45 commits intopython:mainfrom
gpshead:CVE-2020-10735
Sep 2, 2022
Merged

gh-95778: CVE-2020-10735: Prevent DoS by very large int()#96499
gpshead merged 45 commits intopython:mainfrom
gpshead:CVE-2020-10735

Conversation

@gpshead
Copy link
Member

@gpshead gpshead commented Sep 2, 2022

Integer to and from text conversions via CPython's bignum int type is not safe against denial of service attacks due to malicious input. Very large input strings with hundred thousands of digits can consume several CPU seconds.

This PR comes fresh from a pile of work done in our private PSRT security response team repo.

Signed-off-by: Christian Heimes [Red Hat] christian@python.org
Tons-of-polishing-up-by: Gregory P. Smith [Google] greg@krypto.org
Reviews via the private PSRT repo via many others (see the NEWS entry in the PR).

I wrote up a one pager for the release managers. Much of that text wound up in the Issue. Backports PRs already exist. See the issue for links.

Further Discussion

... is taking place in discuss.python.org threads

remaining TODOs (aka project management)

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.